package com.TheyChat.service.interfaces.entity;

import com.TheyChat.service.interfaces.enums.FormatPatterns;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class BaseEntity {
    private String id;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime editTime;

    @ApiModelProperty("创建人id")
    private String createUser;
    @ApiModelProperty("更新人id")
    private String editUser;
//    private String test=FormatPatterns.dateTime;
}
